//
// Created by martin on 3/23/22.
//

#ifndef MUDUO_USERINFO_H
#define MUDUO_USERINFO_H

#include "Permission.h"

#include <string>

namespace ftp
{

struct UserInfo
{
public:
	std::string username_;
	std::string password_;
	std::string localRootPath_;
	Permission  permission_;

public:
	UserInfo(const std::string& username, const std::string& password, const std::string& localRootPath, Permission permission)
		: username_(username),
		password_(password),
		localRootPath_(localRootPath),
		permission_(permission)
	{ }

	static const std::string defaultAnonymousUsername()
	{
		return "anonymous";
	}
};

} // namespace ftp

#endif //MUDUO_USERINFO_H
